package com.ruoyi.common.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "yonbip")
public class YonBipConfig
{
    private static String ip  ;
    // 服务端口号
    private static String port1 ;
    // 账套编码，开发环境使用develop，生产环境需要使用用root账号登录，在“系统管理”节点查看账套编码
    private static String busi_center;
    // 第三方应用编码
    private static String app_id ;
    // app_secret，用于请求加签
    private static String app_secret ;
    // 公钥，加解密使用
    private static String public_key ;
    // ncc用户名
    private static String ncc_user ;
    // ncc用户密码
    private static String password ;
    // 公有云租户id
    private static String tenant_id;
    // 加密等级
    private static String secret_level ;
    // 授权模式，客户端模式为client，密码模式为：password
    private static String grant_type ;

    public static String getIp()
    {
        return ip;
    }

    public  void setIp(String ip)
    {
        System.out.println("=================已加载"+ip);
        YonBipConfig.ip = ip;
    }

    public static String getPort1()
    {
        return port1;
    }

    public  void setPort1(String port1)
    {
        YonBipConfig.port1 = port1;
    }

    public static String getBusi_center()
    {
        return busi_center;
    }

    public  void setBusi_center(String busi_center)
    {
        System.out.println("=================已加载"+busi_center);
        YonBipConfig.busi_center = busi_center;
    }

    public static String getApp_id()
    {
        return app_id;
    }

    public  void setApp_id(String app_id)
    {
        YonBipConfig.app_id = app_id;
    }

    public static String getApp_secret()
    {
        return app_secret;
    }

    public  void setApp_secret(String app_secret)
    {
        YonBipConfig.app_secret = app_secret;
    }

    public static String getPublic_key()
    {
        return public_key;
    }

    public  void setPublic_key(String public_key)
    {
        YonBipConfig.public_key = public_key;
    }

    public static String getNcc_user()
    {
        return ncc_user;
    }

    public  void setNcc_user(String ncc_user)
    {
        YonBipConfig.ncc_user = ncc_user;
    }

    public static String getPassword()
    {
        return password;
    }

    public  void setPassword(String password)
    {
        YonBipConfig.password = password;
    }

    public static String getTenant_id()
    {
        return tenant_id;
    }

    public  void setTenant_id(String tenant_id)
    {
        YonBipConfig.tenant_id = tenant_id;
    }

    public static String getSecret_level()
    {
        return secret_level;
    }

    public  void setSecret_level(String secret_level)
    {
        YonBipConfig.secret_level = secret_level;
    }

    public static String getGrant_type()
    {
        return grant_type;
    }

    public  void setGrant_type(String grant_type)
    {
        YonBipConfig.grant_type = grant_type;
    }

}
